<?php
namespace app\common\validate;
use think\Validate;
class Base extends Validate
{
    // 自定义验证规则
    protected function checkPhone($value,$rule,$data)
    {
        if(!checkPhone($value)){
            return '手机号格式有误';
        }
        return true;
    }
    
}
